MAININC=/home/mazhengyang/test/u-boot-1.3.0-rc3-custom/include
GCCINC=/home/tan/crosstool/gcc-3.4.5-glibc-2.3.6/arm-softfloat-linux-gnu/lib/gcc/arm-softfloat-linux-gnu/3.4.5/include
GCCLIBINC=/home/tan/crosstool/gcc-3.4.5-glibc-2.3.6/arm-softfloat-linux-gnu/lib/gcc/arm-softfloat-linux-gnu/3.4.5
all:
	arm-softfloat-linux-gnu-gcc  -D__ASSEMBLY__ -g  -Os   -fno-strict-aliasing  -fno-common -ffixed-r8 -msoft-float -malignment-traps -D__KERNEL__ -DTEXT_BASE=0x33F80000  -I$(MAININC) -fno-builtin -ffreestanding -nostdinc -isystem $(GCCINC) -pipe  -DCONFIG_ARM -D__ARM__ -march=armv4 -mapcs-32 -c -o start.o start.S
	arm-softfloat-linux-gnu-gcc  -D__ASSEMBLY__ -g  -Os   -fno-strict-aliasing  -fno-common -ffixed-r8 -msoft-float -malignment-traps -D__KERNEL__ -DTEXT_BASE=0x33F80000  -I$(MAININC) -fno-builtin -ffreestanding -nostdinc -isystem $(GCCINC) -pipe  -DCONFIG_ARM -D__ARM__ -march=armv4 -mapcs-32 -c -o lowlevel_init.o lowlevel_init.S
	arm-softfloat-linux-gnu-gcc -g  -Os   -fno-strict-aliasing  -fno-common -ffixed-r8 -msoft-float -malignment-traps -D__KERNEL__ -DTEXT_BASE=0x33F80000  -I$(MAININC) -fno-builtin -ffreestanding -nostdinc -isystem $(GCCINC) -pipe  -DCONFIG_ARM -D__ARM__ -march=armv4 -mapcs-32 -Wall -Wstrict-prototypes -c -o board.o board.c
	arm-softfloat-linux-gnu-gcc -g  -Os   -fno-strict-aliasing  -fno-common -ffixed-r8 -msoft-float -malignment-traps -D__KERNEL__ -DTEXT_BASE=0x33F80000  -I$(MAININC) -fno-builtin -ffreestanding -nostdinc -isystem $(GCCINC) -pipe  -DCONFIG_ARM -D__ARM__ -march=armv4 -mapcs-32 -Wall -Wstrict-prototypes -c -o serial.o serial.c
	arm-softfloat-linux-gnu-ld -Bstatic -T u-boot.lds -Ttext 0x33F80000  start.o board.o serial.o lowlevel_init.o -L $(GCCLIBINC) -lgcc  -Map u-boot.map -o u-boot
	arm-softfloat-linux-gnu-objcopy --gap-fill=0xff -O binary u-boot u-boot.bin
	arm-softfloat-linux-gnu-objdump -xS u-boot > u-boot.s
clean:
	rm *.o;rm u-boot.bin; rm u-boot.s; rm u-boot.map

